import Vue from 'vue'
import Router from 'vue-router'

import Main from '@/pages/main'
import Fir from '@/pages/create_plan/fir'
import Sec from '@/pages/create_plan/sec'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'Main',
      component: Main,
      redirect: 'fir',
      children: [
        {
          path: 'fir',
          name: 'fir',
          component: Fir
        },
        {
          path: 'sec',
          name: 'sec',
          component: Sec
        }
      ]
    }
  ]
})
